<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<script type="text/javascript">
    $(function(){
        editor.render("editor");

        $("#dept_type_1").combotree({
            url:'${pageContext.request.contextPath}/serviceController/find_base1.action',
            parentField:"pid",
            lines:true,
        })
    })
</script>
<div align="center">
    <form id="admin_serviceAdd_addForm" method="post">
        <table class="tableForm">
            <tr>
                <th>内容编号</th>
                <td><input name="id" class="easyui-validatebox" data-options="required:true" disabled placeholder="自动生成"/></td>
                <th>内容名称</th>
                <td><input name="name" class="easyui-validatebox" data-options="required:true" /></td>
            </tr>
            <tr>
                <th>父级ID</th>
                <td>
                    <select name="pid"  class="easyui-combotree" id="dept_type_1" style="width: 150px" data-options="url:'${pageContext.request.contextPath}/serviceController/find_base1.action',parentField:'pid',lines:true"></select>
                    <img src="${pageContext.request.contextPath}/style/images/extjs_icons/cut_red.png" onclick="$('#dept_type_1').combotree('clear');" />
                </td>
                <th>是否显示标题</th>
                <td><jsp:include page="is_show.jsp"></jsp:include></td>
            </tr>
            <tr>
                <th>内容正文</th>
            </tr>
            <tr>
                <td colspan=4><div id="editor" style="width:99%;height:200px;" ></div> <input type="hidden" id="editor_val" name="content"></td>
            </tr>
        </table>
    </form>
</div>